import http from './http'
import server from 'config/server'

export default {
   /**
   * 设备快照数据端点统计
   * @param  {String} productId 产品id
   * @param  {String} deviceId 产品id
   * @return {Promise}
   */
  getSnapshot (productId, deviceId, params) {
    return http.post(
      `${server.host}/v2/product/${productId}/device/${deviceId}/snapshot`, JSON.stringify(params)
    )
  }
}
